package com.ruoyix.weblog.domain.bo;

import com.ruoyix.common.core.validate.AddGroup;
import com.ruoyix.common.core.validate.EditGroup;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import jakarta.validation.constraints.*;
import java.util.Date;

import com.ruoyix.common.core.domain.BaseEntity;

/**
 * 文章评论业务对象 blog_comment
 *
 * @author ruoyi
 * @date 2024-05-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BlogCommentBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 评论来源标识
     */
    @NotNull(message = "评论来源标识不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long source;

    /**
     * 评论来源类型
     */
    @NotBlank(message = "评论来源类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 父评论ID
     */
//    @NotNull(message = "父评论ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentCommentId;

    /**
     * 发表用户ID
     */
//    @NotNull(message = "发表用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 楼层评论ID
     */
//    @NotNull(message = "楼层评论ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long floorCommentId;

    /**
     * 父发表用户名ID
     */
//    @NotNull(message = "父发表用户名ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentUserId;

    /**
     * 点赞数
     */
//    @NotNull(message = "点赞数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long likeCount;

    /**
     * 评论内容
     */
    @NotBlank(message = "评论内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String commentContent;

    /**
     * 评论额外信息
     */
//    @NotBlank(message = "评论额外信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String commentInfo;



}
